package com.wkq.util.socket

import android.os.Build
import org.java_websocket.client.WebSocketClient
import org.java_websocket.handshake.ServerHandshake
import java.net.URI
import javax.net.ssl.SSLParameters

/**
 *
 *@Author: wkq
 *
 *@Time: 2025/5/29 11:17
 *
 *@Desc:
 */
open class CsWebSocketClient(uri: URI, headers: Map<String, String>): WebSocketClient(uri,headers) {
    override fun onOpen(handshakedata: ServerHandshake?) {

    }

    override fun onMessage(message: String?) {

    }

    override fun onClose(code: Int, reason: String?, remote: Boolean) {

    }

    override fun onError(ex: Exception?) {

    }
    override fun onSetSSLParameters(sslParameters: SSLParameters?) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
            super.onSetSSLParameters(sslParameters)
        }
    }
}